public class Dog {
    public String name;
    public int age;

    public void barks() {
        System.out.println(name + "汪汪叫");
    }

    public void sleep() {
        System.out.println(name + "睡觉");
    }
}
